import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

# 直方图
n = np.random.randint(0, 10, size=10)
print(n)
print(plt.hist(n, bins=10, density=True, color='r', orientation='horizontal'))
# {'vertical', 'horizontal'}
plt.show()